import { createApp } from "vue";
import App from "./App.vue";
import "./style.css";
import "bootstrap/dist/css/bootstrap.min.css";
import "bootstrap/dist/js/bootstrap.bundle.min.js";

import "swiper/swiper-bundle.css";
import { Swiper, SwiperSlide } from "swiper/vue";
import SwiperCore, { Navigation, Pagination, Autoplay } from "swiper/core";

import router from "./router";

// 注册 Swiper 的插件
SwiperCore.use([Navigation, Pagination, Autoplay]);

// 创建 Vue 应用
const app = createApp(App);

// 注册全局组件
app.component("swiper", Swiper);
app.component("swiper-slide", SwiperSlide);

// 使用 Vue Router
app.use(router);

// 挂载 Vue 应用
app.mount("#app");